<?php $this -> load->view('admin/inc/header');?>
    <div id="maincontainer">
        <?php $this -> load->view('admin/inc/menu_admin');?>
<div id="tab_form">
    <table border='1' id="tab">
        <tr>
            <th>Xóa</th>        
            <th>ID</th>        
            <th>Tên Bài</th>
            <th>Nội Dung</th>
            <th>Images</th>
            <th>Video</th>
            <th>Tài Liệu</th>
            <th>Ngày</th>
            <th>Trạng Thái</th>
            <th>Khóa Học</th>
            <th>Tuần</th>
        </tr>
        <?php
                 if(isset($baigiang)){
                        foreach($baigiang->result_array() as $rowbaigiang):
                 ?>
                        <tr>
                            <td><a href='<?php echo site_url('admin/useradmin/delete/'.$rowlogin['id_bai']); ?>'><img src="<?php echo base_url();?>public/images/b_drop.png" /></a></td>
                            <td><?php echo $rowbaigiang['id'];?></td>
                            <td><?php echo $rowbaigiang['ten_bai'];?></td>
                            <td><?php echo $rowbaigiang['noidung'];?></td>
                            <td><?php echo $rowbaigiang['images'];?></td>
                            <td><?php echo $rowbaigiang['video'];?></td>
                            <td><?php echo $rowbaigiang['tailieu'];?></td>
                            <td><?php echo $rowbaigiang['ngay'];?></td>
                            <td><?php echo $rowbaigiang['state'];?></td>
                            <td><?php echo $rowbaigiang['id_khoahoc'];?></td>
                            <td><?php echo $rowbaigiang['tuan'];?></td>
                        </tr>
                    <?php    endforeach;
                      }       
                 ?>
    </table>
</div><!--end tab_form-->
</div><!--End div#maincontainer-->
<?php $this -> load->view('admin/inc/footer');?>